package com.zjy.pgcms.common;


/**
 * 返回码
 *
 * @author 音音音
 */
public enum ReservationStatus {

    UN_CONFIRMED(1,"店家未确认"),
    CONFIRMED(2,"店家已确认") ,
    CANCEL(3,"已取消"),
    CANCEL_ADMIN(4,"店家已拒绝"),

    COMPLETED(5,"订单已完成"),
    UN_COMPLETED(6,"未按约定完成")
    ;
    //返回码
    private final int code;
    //操作响应信息
    private final String message;

    //构造函数
    ReservationStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }
    //get方法
    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
